package com.seal.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.seal.comm.utils.Page;
import com.seal.dao.IVerifybookDao;
import com.seal.dto.VerifybookDto;
import com.seal.model.Verifybook;
import com.seal.service.IVerifybookService;

/**
 * @author debuger
 */
@Service("verifybookServiceImpl")
@Transactional(readOnly = true)
public class VerifybookServiceImpl implements IVerifybookService{
	@Resource(name = "verifybookDaoImpl")
	private IVerifybookDao verifybookDao;

	@Transactional(propagation = Propagation.REQUIRED,readOnly = false, rollbackForClassName = "Exception")
	public void addVerifybook(Verifybook ca) throws Exception {
		verifybookDao.addVerifybook(ca);
	}

	public List<Verifybook> getVerifybookList(VerifybookDto dto, Page page)
			throws Exception {
		return verifybookDao.getVerifybookList(dto, page);
	}

}
